package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * @author admin
 * @version 1.0.0
 * @ClassName CheckPay.java
 * @Description TODO
 * @createTime 2020年10月12日 14:54:00
 */
@Controller
public class CheckPay {
    @RequestMapping("/checkpay")
    public  String pay(Model model,HttpSession session){
//        model.addAttribute("WIDout_trade_no","151604");
//        model.addAttribute("WIDtotal_amount","100");
//        model.addAttribute("WIDsubject","车位购买");
//        model.addAttribute("WIDbody","买了一个车位");
//        session.setAttribute("a","a");
        return "paybutton";
    }

    @RequestMapping("/test")
    public  String test(){

        return "paybutton";
    }

}
